#ifndef __CONFIG_H__
#define __CONFIG_H__

//========================================

#define ENABLE 1
#define DISABLE 0

#define Polity_0 0 //ÖÐ¶ÏÓÅÏÈ¼¶Îª 0 ¼¶£¨×îµÍ¼¶£©
#define Polity_1 1 //ÖÐ¶ÏÓÅÏÈ¼¶Îª 1 ¼¶£¨½ÏµÍ¼¶£©
#define Polity_2 2 //ÖÐ¶ÏÓÅÏÈ¼¶Îª 2 ¼¶£¨½Ï¸ß¼¶£©
#define Polity_3 3 //ÖÐ¶ÏÓÅÏÈ¼¶Îª 3 ¼¶£¨×î¸ß¼¶£©

#define UART1_Polity(n)                      \
	do {                                 \
		if (n == 0)                  \
			IPH &= ~PSH, PS = 0; \
		if (n == 1)                  \
			IPH &= ~PSH, PS = 1; \
		if (n == 2)                  \
			IPH |= PSH, PS = 0;  \
		if (n == 3)                  \
			IPH |= PSH, PS = 1;  \
	} while (0)

//#define MAIN_Fosc		 5529600L
#define MAIN_Fosc 11059200L
//#define MAIN_Fosc		12000000L
//#define MAIN_Fosc		22118400L
//#define MAIN_Fosc		24000000L

#define UART1 1
//#define	UART2	2
//#define	UART3	3
//#define	UART4	4

#endif //__CONFIG_H__
